import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { Link, useHistory } from 'react-router-dom'
import { Layout, Menu, Breadcrumb, Row, Col, Button, Tabs, Space, message, PageHeader } from 'antd';
import { UserOutlined, LaptopOutlined, NotificationOutlined } from '@ant-design/icons';
import { checkAdmin } from '../../../utils/loginUtils/loginMethod'
import api from '../../../utils/requestUtils/apiConfig'
import axios from 'axios'
import UserManage from './useManage'
export default ({
    coachInfoList,
    setCoachInfoList,
    coachInfo
}) => {
    const { TabPane } = Tabs;
    const history = useHistory()
   

    return (
        <>

            <Tabs
                size='small'
            >
                <TabPane tab="用户管理" key="1">
                    <UserManage
                        coachInfoList={coachInfoList}
                        setCoachInfoList={setCoachInfoList}
                        coachInfo={coachInfo}
                    />
                </TabPane>
                <TabPane tab="用户导入" key="2">
                    用户导入
                </TabPane>

            </Tabs>

        </>
    )
}


